<?php
	class InsertModel extends Model
	{	
		function InsertModel()
		{
			parent::Model();
			$this->load->database();
		}
		function insertNews($tablename,$data)
		{    //ssprint_r($data);
			 $this->db->insert($tablename, $data);
		}
		function getToutiao(){
			$this->db->where('sortid',1);
			$query=$this->db->get('gaoji_news');
			return $query;
		}
		function getZj(){
			$this->db->where('sortid',2);
			$query=$this->db->get('gaoji_news');
			return $query;
		}
		function getCp(){
			$this->db->where('sortid',3);
			$query=$this->db->get('gaoji_news');
			return $query;
		}
		function getGg(){
			$this->db->where('sortid',4);
			$query=$this->db->get('gaoji_news');
			return $query;
		}
	}

?>